package sensors;

import lejos.nxt.Button;
import lejos.nxt.ButtonListener;
import lejos.nxt.LCD;

public class LeftButtonListener implements ButtonListener {

	static int direction = 0;

	@Override
	public void buttonPressed(Button b) {
		direction++;
		LCD.drawString("Counter: " + direction, 0, 1);

	}

	@Override
	public void buttonReleased(Button b) {

	}

	public int getDirection() {
		return direction;
	}

}
